package com.jy.adscm.zltx.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 质量体系树形结构表
 * </p>
 *
 * @author yyy
 * @since 2018-11-02
 */
@Data
public class JyZltxListTree implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String listName;
    private Long parentId;
    private Integer linkFileId;
    private String fileGs;
    private String fileType;

    @TableField(exist = false)
    private List<JyZltxListTree> children;

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public List<JyZltxListTree> getChildren() {
        return children;
    }

    public void setChildren(List<JyZltxListTree> children) {
        this.children = children;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getListName() {
        return listName;
    }

    public void setListName(String listName) {
        this.listName = listName;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Integer getLinkFileId() {
        return linkFileId;
    }

    public void setLinkFileId(Integer linkFileId) {
        this.linkFileId = linkFileId;
    }

    public String getFileGs() {
        return fileGs;
    }

    public void setFileGs(String fileGs) {
        this.fileGs = fileGs;
    }

    @Override
    public String toString() {
        return "JyZltxListTree{" +
                "id=" + id +
                ", listName='" + listName + '\'' +
                ", parentId=" + parentId +
                ", linkFileId=" + linkFileId +
                ", fileGs='" + fileGs + '\'' +
                ", fileType='" + fileType + '\'' +
                ", children=" + children +
                '}';
    }
}
